package top.korori.sv.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.korori.sv.entity.SvWork;
import top.korori.sv.entity.bo.SvMyWorkGetBo;
import top.korori.sv.entity.bo.SysSvWorkBo;
import top.korori.sv.entity.vo.SvWorkVo;
import top.korori.sv.entity.vo.SvUserWorkVo;
import top.korori.sv.entity.vo.SysSvWorkVo;

/**
 *
 * 作品 Mapper 接口
 *
 * @author korori
 */
@Mapper
public interface SvWorkMapper extends BaseMapper<SvWork> {

    Page<SvUserWorkVo> getHomeWorkExtUserList(@Param("page") Page<SvUserWorkVo> page);

    Page<SvWorkVo> getMyList(@Param("reqParam") SvMyWorkGetBo svMyWorkGetBo, @Param("userId") Long userId, @Param("page") Page<SvWorkVo> page);

    Page<SysSvWorkVo> getSysList(Page<SysSvWorkVo> page, @Param("params") SysSvWorkBo svWorkBo);
}
